<!DOCTYPE html>
<html xmlns:ui='http://java.sun.com/jsf/facelets'
	xmlns:h='http://java.sun.com/jsf/html'
	xmlns:f='http://java.sun.com/jsf/core' lang='en'>
<body>
<ui:composition template='snippets/template.xhtml'>
	<ui:define name='title'>Einstellungen</ui:define>
	<ui:define name='content'>
		<f:view>
			<h:messages />
			<h:form id='changeUserDataForm'>
				<table>
					<tr>
						<td width="170px">Altes Passwort:</td>
						<td><h:inputSecret id='oldPassword'
							value='#{ ChangeUserDataBean.oldPassword }' required='true'
							size='15'>
							<f:validateLength minimum='1' maximum='30' />
						</h:inputSecret></td>
					</tr>
					<tr>
						<td width="170px">Neues Passwort:</td>
						<td><h:inputSecret id='newPassword'
							value='#{ ChangeUserDataBean.newPassword }' required='true'
							size='15'>
							<f:validateLength minimum='1' maximum='30' />
						</h:inputSecret></td>
					</tr>
					<tr>
						<td width="170px">Neues Passwort bestätigen:</td>
						<td><h:inputSecret id='newConfirmedPassword'
							value='#{ ChangeUserDataBean.newConfirmedPassword }'
							required='true' size='15'>
							<f:validateLength minimum='1' maximum='30' />
						</h:inputSecret></td>
					</tr>
					<tr>
						<td width="170px">E-Mail:</td>
						<td><h:inputText id='newEmail'
							value='#{ ChangeUserDataBean.newEmail }' required='true'
							size='15'>
							<f:validateLength minimum='1' maximum='30' />
						</h:inputText></td>

					</tr>
					<tr>
						<td colspan='2' align='right'>
							<h:commandButton action='#{ ChangeUserDataBean.changeUserData }' value='Change User Data' />
							<h:commandButton action='#{ ChangeUserDataBean.cancel }' value='Cancel' />
						</td>
					</tr>
				</table>
			</h:form>
			<br />
			<br />
		</f:view>
	</ui:define>
</ui:composition>
</body>
</html>

